import time

from .celery import app

@app.task
def crawl_baidu():
    print('====开始爬百度====')
    time.sleep(2)
    print('====爬完百度====')
    return '成功爬取！！'


@app.task
def crawl_cnblogs():
    print('====开始爬cnblogs====')
    time.sleep(2)
    print('====爬完cnblogs====')
    return '成功爬取cnblogs！！'